package com.whw.fy.mapper;

import com.whw.fy.entity.Student;
import java.util.List;
import com.whw.fy.entity.count.CountAllStudentStatus;import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudentMapper {
    int deleteByPrimaryKey(Integer studentId);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer studentId);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    int updateBatch(List<Student> list);

    int updateBatchSelective(List<Student> list);

    int batchInsert(@Param("list") List<Student> list);

    List<Student> selectAll();

    Student selectByStudentName(@Param("studentName") String studentName);

    List<CountAllStudentStatus> selectStudentIdAndStudentNameAndStudentStatusAndStudentTreatPrincipalTeacherId();

    List<Student> selectByStudentTreatMedicalDirectorId(@Param("studentTreatMedicalDirectorId")Integer studentTreatMedicalDirectorId);

    List<Student> selectAllByStudentTreatPrincipalTeacherId(@Param("studentTreatPrincipalTeacherId")Integer studentTreatPrincipalTeacherId);

    List<Student> selectByStudentTreatTeachingDirectorId(@Param("studentTreatTeachingDirectorId")Integer studentTreatTeachingDirectorId);



}